package com.gxnzd.communityelderly.service;

import com.gxnzd.communityelderly.commom.R;
import com.gxnzd.communityelderly.entity.Forum;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 23234
* @description 针对表【forum】的数据库操作Service
* @createDate 2024-11-15 23:40:29
*/
public interface ForumService extends IService<Forum> {


    R addPost(Forum forum);

    R getListPage(Integer page,
                  Integer pageSize,
                  String postTitle,
                  Integer postStatus,
                  Long userId);

    R getPostDetails(Long postId);

    R setPostStatus(Long postId,Integer postStatus);

    R getUserForumList(Long userId);

    R deletePostItem(Integer postId);
}
